package com.itheima.app.controller.omsController;


import com.itheima.app.manager.omsManager.OmsManager;
import com.itheima.commons.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * 图片上传
 */
@RestController
@CrossOrigin    //跨域
public class OmsController {
    @Autowired
    private OmsManager omsManager;

   /* *//**
     * 图片上传
     *
     * @return
     *//*
    @PostMapping("/aliyun/oss/upload")
    public R photoUpload(MultipartFile photoFile) {
        String url = omsManager.photoUpload(photoFile);
        return R.ok(url);
    }*/
}